package com.github.pig.admin.service.sys.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.github.pig.admin.mapper.sys.PaymentWarnMapper;
import com.github.pig.admin.model.entity.PaymentWarn;
import com.github.pig.admin.service.sys.PaymentWarnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 物业费提醒 服务实现类
 *
 */
@Service
public class PaymentWarnServiceImpl extends ServiceImpl<PaymentWarnMapper,PaymentWarn> implements PaymentWarnService {

        @Autowired
        private PaymentWarnMapper paymentWarnMapper;

        @Override
        public Page<PaymentWarn> indexPage(Page<PaymentWarn> page, PaymentWarn paymentWarn) {

            List<PaymentWarn> list = paymentWarnMapper.indexPage(page,paymentWarn);
            return page.setRecords(list);
        }
}
